<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 *
 * @package    Inherit_View
 * @author     homm
 * @copyright  (c) 2009 homm
 * @license    http://kohanaphp.com/license.html
 */
class Inherit_View_Demo_Controller extends Inherit_Template_Controller {
	
	// Disable this controller when Kohana is set to production mode.
	// See http://docs.kohanaphp.com/installation/deployment for more details.
	const ALLOW_PRODUCTION = FALSE;
	
	public $template = 'Simple_Page';
	
	public function index()
	{
		$this->template->title = "Demo Page";
	}
	
	public function another()
	{
		// change view on the fly
		$this->template->set_filename('Another_Page');
		
		$this->template->title = "Demo Page";
		$this->template->css = "style.css";
	}
	
	public function _from_controller() {
		return "This text returnet from controller!";
	}
}
 